package com.example.demo.enums;

public enum StatusEnum {

    E("可用"),
    T("停用"),
    D("删除");

    private String remark;

    StatusEnum(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return this.remark;
    }

    public static String getCnValue(String code) {
        for(StatusEnum status : values()) {
            if (status.name().equals(code)) {
                return status.getRemark();
            }
        }
        return null;
    }
}
